/**
 * Defines the main routes in the application.
 * The routes you see here will be anchors '#/' unless specifically configured otherwise.
 */

define(['./app'], function (app) {
    'use strict';
    return app.config(function ($stateProvider,$urlRouterProvider) {

        $urlRouterProvider.otherwise('/error');

        $stateProvider.state('error',{
            url:'/error',
            templateUrl:'404.html'
        }).state('index',{
            url:'/index',
            templateUrl:"app/index/indexmain.html"
        })

        //商户信息列表
        .state("storeinfoment",{
            url:"/storeinfoment",
            templateUrl:"app/storeinfo/storeinfoment.html",
            params:{
                'operate':'find'
            }
        })
        //商户信息添加
        .state("storeinfo",{
            url:"/storeinfo",
            templateUrl:"app/storeinfo/storeinfo.html",
            params:{
                'operate':'save'
            }
        })







    });
});
